<template>
	<view class="columnbox wdh-100 content">
		<view class="columnbox input-box">
			<view class="color-u title wdh-100 rowbox spb">
				<view>疾病诊断</view>
				<view class="color-o" style="font-size: 24rpx;">最多可填6个疾病</view>
			</view>
			<textarea v-model="info" auto-height class="wdh-100 textarea-box" placeholder="请输入"></textarea>
		</view>
		<view class="rowbox send-btn one-btn" @click="saveInfo">保存</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				info: ''
			};
		},
		onLoad() {
			// this.getList()
		},
		methods: {
			getList() {
				this.$req.post('/doctor/jibingzd').then(res => {

				})
			},
			saveInfo() {
				let pages = getCurrentPages(); //获取所有页面栈实例列表
				let nowPage = pages[pages.length - 1]; //当前页页面实例
				let prevPage = pages[pages.length - 2]; //上一页页面实例
				prevPage.$vm.diagnosis = this.info
				uni.navigateBack()
			}
		}
	}
</script>

<style lang="scss" scoped>
	.content {
		min-height: 100vh;
		background: #F5F8FB;
		justify-content: flex-start;
		font-family: PingFang SC;
	}

	.input-box {
		background: #fff;
		padding: 20rpx 20rpx;
		width: 100%;
		margin-top: 20rpx;
	}

	.textarea-box {
		font-size: 28rpx;
		margin-top: 40rpx;
	}

	.one-btn {
		width: 710rpx;
		margin-top: 40rpx;
	}

	.title {
		font-size: 28rpx;
	}
</style>